package com.baobaotao.conf;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class JavaConfigTest {
	public static void main(String[] args) {
		ApplicationContext ctx= new AnnotationConfigApplicationContext(DaoConfig.class,ServiceConfig.class);
		
		LogonService logonService = ctx.getBean(LogonService.class);
		System.out.println(logonService.getLogDao() !=null);
		logonService.printHello();
	}
	

}
